FROM python:3.11
WORKDIR /app
COPY . .
RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
RUN pip install --upgrade pip
RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
#RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ wrapt

#RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ setuptools
#RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ watchfiles

#RUN pip install tqdm -i https://mirrors.aliyun.com/pypi/simple/
#RUN pip install pygments -i https://mirrors.aliyun.com/pypi/simple/

#RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ pygments


#RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ idna
#RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ rich
#RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ sniffio


RUN  pip install   poetry

RUN  poetry install  

EXPOSE 8084
CMD ["poetry","run","python","main.py"]